import mongoengine
from django.contrib.auth.models import AbstractUser
from django.db.models import DateTimeField
from datetime import datetime
from fct_rest_platform.utils.auto_id import time_method


# 项目
class Project(mongoengine.Document):
    class Meta():
        verbose_name = "project"
        verbose_name_plural = "projects"

    project_name = mongoengine.StringField(max_length=32, required=True)
    owner_id = mongoengine.IntField(required=True)
    desc = mongoengine.StringField(max_length=400, required=True)


# 模块
class Module(mongoengine.Document):
    module_name = mongoengine.StringField(max_length=64, required=True)
    belong_project_id = mongoengine.IntField(required=True)
    owner_id = mongoengine.IntField(required=True)
    desc = mongoengine.StringField(max_length=400, required=True)


